<template>

</template>
<script setup>
import {ref,isRef,reactive,readonly,isReactive,isReadonly,isProxy} from 'vue';
const refData = ref(0);
const reactiveData = reactive({count:0});
const readonlyData = readonly({count:0});
//判断是不是Ref引用对象
console.log(isRef(refData))
//是不是reactive响应式对象
console.log(isReactive(reactiveData))
//判断是不是只读对象
console.log(isReadonly(readonlyData))
//判断是不是代理Proxy
console.log(isProxy(reactiveData))
console.log(isProxy(refData))
</script>